Returns the result of JavaScript evaluated in a window.
Syntax
InvokeJavaScript("Script")
Arguments
| Argument | Description |
|---|---|
| Script | JavaScript to invoke. Case sensitive. Alerts, confirmations, and prompts are not supported. |
Supported objects
Browser, Window
Return value
| Value | Description |
|---|---|
| Value | JavaScript result. |
Example
documentLocation = Window("MyWebPage").InvokeJavaScript("document.location.href;")